package com.java.basis.string;


/**
 * @author wangning
 * @create 2021-11-17 15:54
 */
public class StringTest01 {
	public static void main(String[] args) {
//		String s = new String("a") + new String("b");
//		s.intern();
//		String ss = "ab";
//		System.out.println(s == ss);//

		String s1 = new String("ab");
//		s1.intern();
		String s2 = "ab";
		System.out.println(s1 == s2);
	}
}
